package com.kingtsoft.study.webserivce;

import com.kingtsoft.study.common.JsonResult;
import com.kingtsoft.study.model.StudyUser;

import java.util.List;

public interface WebLoginService {

	/**
	 *
	 * @Title: GetLoginName
	 * @Description: 获取登录名称
	 * @return
	 * @return: String
	 */
	public String getLoginName();


	/**
	 *
	 * @Title: doLogin
	 * @Description: 用户登录校验
	 * @author: shenlx
	 * @param studyUser
	 * @return: void
	 */
	public JsonResult doLogin(StudyUser studyUser);

	/**
	 *
	 * @Title: remoteUsername
	 * @Description: 校验用户名唯一性
	 * @author: shenlx
	 * @param username
	 * @return
	 * @return: boolean
	 */
	public boolean remoteUsername(String username);

	/**
	  *
	  * @Title: addRegister
	  * @Description: 用户注册
	  * @author: shenlx
	  * @param studyUser
	  * @param studentName  这里为了方便，只做了学生注册，并只保存学生姓名
	  * @return
	  */
	public void addRegister(StudyUser studyUser,String studentName);

	/**
	 *
	 * @Title: doLogout
	 * @Description: 退出登录
	 * @author: shenlx
	 * @return: void
	 */
	public void doLogout();

	/**
	 * 获取菜单
	 * @return
	 * @author jerry.pan
	 * @date 2017-04-12 10:04:33
	 */
	List menu();
}
